import request from "@/utils/request";

export const courseListService = (params) => {
    return request.get('/course/list', {params: params})
}

export const courseAllService = () => {
    return request.get('/course/all')
}

export const courseAddService = (data) => {
    return request.put('/course/add', data)
}

export const courseUpdateService = (data) => {
    return request.put('/course/update', data)
}

export const getCourseService = (id) => {
    return request.get(`/course/get?id=${id}`)
}

export const deleteCourseService = (id) => {
    return request.delete(`/course/delete?id=${id}`)
}